
package com.cap.bts.crmdp.dealer.mars.service.impl;


import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.cap.bts.crmdp.dealer.mars.dao.IMarsConfigDao;
import com.cap.bts.crmdp.dealer.mars.domain.MarsConfig;
import com.cap.bts.crmdp.dealer.mars.service.IMarsConfigService;
import com.cap.bts.framework.common.exception.AppException;

/**
 *
 */
@Transactional(rollbackFor = AppException.class)
@Service
public class MarsConfigServiceImpl implements IMarsConfigService {

    @Resource(name = "marsConfigDao")
    private IMarsConfigDao marsConfigDao;

	@Override
	public MarsConfig get() {
		return marsConfigDao.findById(1L);
	}

	@Override
	public void save(MarsConfig marsConfig)  {

		marsConfigDao.update(marsConfig);
	}
    
	@Override
	public List<Object> getCutoverDealerIdList() throws AppException{
		
		List<Object> idList = null;
		
		idList = marsConfigDao.getCutoverDealerIdList();
		
		
		
		return idList;
	}
    
   
}
